package com.zhg.service.impl;

import com.zhg.model.auto.User;
import com.zhg.mapper.auto.UserMapper;
import com.zhg.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 达瓦里氏
 * @since 2021-12-24
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Resource
    UserMapper userMapper;

    @Override
    public User login(String username, String password) {
        return userMapper.login(username,password);
    }

    @Override
    public int selectAdmin(String username) {
        return userMapper.selectAdmin(username);
    }
}
